<%@page import="org.w3c.dom.Document"%>
<%@ page import="java.util.*,ServerDB.Folder"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function getID(theLink)
{
	var id=theLink.id;
	return(id);
}

</script>

<meta name="author" content="Wink Hosting (www.winkhosting.com)" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="images/style.css" type="text/css" />
<title>Clever DropBox</title>
</head>
<body>

	<div id="contenttext">
		<div class="panel" align="justify">
			<div class="bodytext" style="padding: 12px;" align="justify">
				<!-- <blockquote> -->
					<p>
						<span class="orangelogotext">My Shared Folders</span>
					</p>
			<!-- 	</blockquote> -->
			</div>


			<blockquote>
				
					<table border="0">
						<%
						
							Set<Folder> setFolders = (Set<Folder>) session.getAttribute("Folders");
							Iterator<Folder> itFolder = setFolders.iterator();
							while (itFolder.hasNext()) 
							{
								Folder folder = itFolder.next();
								String nameFolder = folder.getFolderName().toString();
								String idFolder=Integer.toString(folder.getFolderID());
								
						%>
						<tr>
							<td><img src="images/open_folder.png" />
							</td>
							<td>
								<span class="bodytext"> 
									<a href="/FilesInFolderServlet?FolderID=<%=idFolder%>" title="see files" onclick="javascript:getID(this)">
										<%=nameFolder%> 
									</a>
								</span>
							</td>
						</tr>
						<%
							}
						%>
					</table>
					<p>&nbsp;</p>
			</blockquote>
		</div>
	</div>
</body>
</html>
